import http from "@/http";
import type {Permission} from "@/views/permission/formType";

export const PERMISSION_LIST = (params?:any):Promise<{data:Permission[]}> => {
    return http({
        url:'/permission/list',
        params,
        method:'get'
    }).then((res:any) => {
        return res.data as {data:Permission[]}
    })
}
